//
//  MyAd.h
//  cooba-iOS
//
//  Created by 郭四虎 on 16/3/10.
//  Copyright © 2016年 YouKu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "BannerModel.h"

typedef enum {
    eventtype_click = 0,
    eventtype_show
    
}eventtype;
@class SDCycleScrollView;
@interface MyAd : NSObject

@property (nonatomic,strong) NSMutableArray *adarr;

+(instancetype)sharedMyad;
+ (void)collectShowAd:(BannerModel *)model;
+ (void)collectClickAd:(BannerModel *)model;

- (void)post;

- (void)addicwithModel:(BannerModel *)model;

- (SDCycleScrollView *)createHeaderview:(NSArray *)arr target:(id)target;
- (void)headerViewwithTag:(NSString *)tag target:(UIViewController *)target back:(void(^)(UIView *headView,NSArray *dataArr,bool iserror))back;
- (void)getDataWithTag:(NSString *)tag back:(void(^)(NSDictionary *dic))back error:(void(^)(NSError *error,NSDictionary *di))error;

@end
